Skip to content

fix: doctor command prints output twice - #1334

Merged
grabbou merged 1 commit into
masterfrom
grabbou-patch-1
Dec 7, 2020
Merged

grabbou merged 1 commit into
masterfrom
grabbou-patch-1

Conversation

@grabbou

@grabbou grabbou commented Dec 7, 2020 •

Copy link
Copy Markdown
Member

It turns out that, by a mistake, doctor command is registered twice, both as project and detached command. It has been converted to detached few months ago.

It could be hidden commander feature that when multiple functions are registered under the same name, they run in order. Attaching some screenshots for reference:

Removing it from projectCommands fixes the problem.

We will address similar issue #1261 soon where detached commands (such as doctor included) can receive and take advantage of config when present in the project.

Screenshot 2020-12-07 at 13 15 44

It turns out that, by a mistake, `doctor` command is registered twice, both as project and detached command. It has been converted to `detached` few months ago. 

It could be hidden `commander` feature that when multiple functions are registered under the same name, they run in order. Attaching some screenshots for reference:

Removing it from `projectCommands` fixes the problem.

We will address similar issue #1261 soon where detached commands (such as `doctor` included) can receive and take advantage of `config` when present in the project.

@thymikee thymikee left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for catching that!

@grabbou
grabbou merged commit 22a3c25 into master Dec 7, 2020
@thymikee
thymikee deleted the grabbou-patch-1 branch February 19, 2021 12:35
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants